<?php 
    $config = get_cache('configurations_' .  get_language());
?>
<!--<a class="gotop" href="#" title="<?php // echo __('IP_go_to_top'); ?>">&nbsp;</a>-->
<footer>
    <div class="container footer">
        <div class="row footer_top">
            <div class="col-sm-9 footer_navigation">
                <?php 
                    if(isset($active_menu)){$active_menu=$active_menu;}else{$active_menu=NULL;} 
                    if(isset($current_menu)){$current_menu=$current_menu;}else{$current_menu=NULL;}
                ?>
                <?php echo modules::run('menus/menus/get_main_menus',array('current_menu'=>$current_menu,'active_menu'=>$active_menu,'menu_type'=>FRONT_END_MENU_BOTTOM_CAT_ID,'footer_menu'=>TRUE)); ?>
            </div>
            <div class="col-sm-3 footer_social">
                <a href="<?php if(!empty($config['facebook_id'])){ ?>https://www.facebook.com/<?php echo $config['facebook_id']; ?><?php }else{echo '#';} ?>"><img alt="Follow us on Facebook" src="/images/facebook-icon.png"></a>
                <a href="#"><img alt="Follow us on Twitter" src="/images/twitter-icon.png"></a>
                <a href="#"><img alt="Follow us on Google Plus" src="/images/google-icon.png"></a>
                <a href="#"><img alt="Follow us on Youtube" src="/images/youtube-icon.png"></a>
                <a href="#"><img alt="Follow us on Tumblr" src="/images/tumblr-icon.png"></a>
                <a href="#"><img alt="Follow us on Pinterest" src="/images/pinterest-icon.png"></a>		
            </div>
        </div>
        <div class="row footer_contact">
            <div class="col-sm-12">
                <?php if(!empty($config['footer_contact'])){ ?>
                <?php echo $config['footer_contact']; ?>
                <?php } ?>
            </div>
        </div>
        <div class="row footer_bottom">
            <div class="col-sm-12">
                <p class="float-left"><?php echo DEFAULT_FOOTER; ?>&nbsp;&VerticalLine;&nbsp;<?php echo __('IP_default_design'); ?></p>
            </div>
        </div>
    </div>
</footer>

<?php 
if(!empty($config)){
    echo (isset($config['google_tracker']))?$config['google_tracker']:'';
}
?>
<!-- Latest compiled and minified JavaScript -->
<script type="text/javascript" src="<?php echo base_url(); ?>frontend/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>frontend/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>frontend/js/home.js"></script>

<script type="text/javascript" src="<?php echo base_url(); ?>frontend/js/jquery.smartmenus.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>frontend/js/jquery.smartmenus.bootstrap.js"></script>

<link rel="stylesheet" href="/plugins/nivoslider/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/plugins/nivoslider/themes/bar/bar.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/plugins/nivoslider/nivo-slider.css" type="text/css" media="screen" />
<script type="text/javascript" src="/plugins/nivoslider/jquery.nivo.slider.js"></script>
<script type="text/javascript">
$(window).load(function() { 
    $("#slider").nivoSlider({
        animSpeed: 500,
        pauseTime: 3000
    });
});
</script>

<?php if(isset($scripts)){echo $scripts;} ?>
